package com.coderman.task.service;

import java.util.concurrent.LinkedBlockingDeque;

/**
 * Created by ${fanchunshuai} on 2017-8-11.
 *
 * @version: V1.0
 * @Desc:
 * @Copyright (c) 2017 58到家-版权所有
 */
public class ParseUserExtTask implements Runnable {
    private LinkedBlockingDeque<String> list;

    public ParseUserExtTask(LinkedBlockingDeque<String> list){
        this.list = list;
    }

    @Override
    public void run() {
        try {
            for (int i =0;i< 2000;i++){
                ParseUserExt parseUserExt = new ParseUserExt();
                parseUserExt.exeParse(list.take());
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
